package com.ym.medical.domain.param;

import com.ym.common.constant.BeanCovert;
import com.ym.medical.domain.entity.HospitalEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@ApiModel(value = "医院下线实体")
public class HospitalPcUpdateParam extends BeanCovert<HospitalEntity> {
    @ApiModelProperty(notes = "主键")
    @NotNull(message="主键不能为空!",groups = {Update.class})
    private Long id;

    @ApiModelProperty(notes = "发布状态")
    @NotNull(message="发布状态不能为空!",groups = {Update.class})
    @Size(max = 2 , message = "发布状态长度必须在{min}和{max}之间",groups = {Add.class,Update.class})
    private String publishStatus;



    public interface Add {
    
    }

    public interface Update {
    
    }

}